package com.imooc.ecommerce.source;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

/**
 * 自定义物流消息通信信道(Source)
 * @author zhangshao
 * @since 2023/12/14 21:24
 */
public interface LogisticsSource {

    /**
     * 输出信道名称
     */
    String OUTPUT = "logisticsOutput";

    /**
     * 物流Source --> logisticsOutput
     * 物流信道的名称是 logisticsOutput,对应到 yml文件里的配置
     * @return
     */
    @Output(LogisticsSource.OUTPUT)
    MessageChannel logisticsOutput();




}
